﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="simple_calculator.aspx.vb" Inherits="assignment.simple_calculator" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
       Please enter your first number here <asp:TextBox ID="tb_FirstNumber" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="rv_validator1" runat="server" 
            ControlToValidate="tb_FirstNumber" 
            ErrorMessage="You must enter a value between 1 - 1000" MaximumValue="1000" 
            MinimumValue="1" Type="Integer"></asp:RangeValidator>
    <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="tb_FirstNumber" ErrorMessage="You must enter a value">
           </asp:RequiredFieldValidator>
        &nbsp;</p>
    <p>
       Please enter your second number here <asp:TextBox ID="tb_SecondNumber" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="rv_validator2" runat="server" 
            ControlToValidate="tb_SecondNumber" 
            ErrorMessage="You must enter a value between 1 - 1000" MaximumValue="1000" 
            MinimumValue="1" Type="Integer"></asp:RangeValidator>
    <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
           ControlToValidate="tb_SecondNumber" ErrorMessage="You must enter a value">
           </asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Button ID="btn_Calculate" runat="server" Text="Calculate" />
    </p>
    <p>
        <asp:Label ID="lbl_Result" runat="server"></asp:Label>
    </p>
</asp:Content>
